#Cairo canvas. The following variables are available:
# * CNTX: A reference to the current cairo context object
# * W: Canvas width
# * H: Canvas height
# Have fun!


def star():
    CNTX.move_to(0,100)
    CNTX.rel_line_to(50,-25)
    CNTX.rel_line_to(25,-50)
    CNTX.rel_line_to(25,50)
    CNTX.rel_line_to(50,25)
    CNTX.rel_line_to(-50,25)
    CNTX.rel_line_to(-25,50)
    CNTX.rel_line_to(-25,-50)
    CNTX.close_path()
    CNTX.fill()

CNTX.set_source_rgb(*COLOR("yellow"))
star()
CNTX.translate(200,0)
CNTX.scale(0.5,0.5)
CNTX.set_source_rgb(*COLOR("blue"))
star()
CNTX.translate(200,0)
CNTX.scale(0.5,0.5)
CNTX.set_source_rgb(*COLOR("red"))
star()

# RETO: Draw the American flag

